package com.ruoyi.system.service.car4s_service.car4s_impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.car4s_mapper.Car4sRepairInfoDetailMapper;
import com.ruoyi.system.domain.car4s_domain.Car4sRepairInfoDetail;
import com.ruoyi.system.service.car4s_service.ICar4sRepairInfoDetailService;

/**
 * 维修信息明细单Service业务层处理
 * 
 * @author LK
 * @date 2024-06-29
 */
@Service
public class Car4sRepairInfoDetailServiceImpl implements ICar4sRepairInfoDetailService 
{
    @Autowired
    private Car4sRepairInfoDetailMapper car4sRepairInfoDetailMapper;

    /**
     * 查询维修信息明细单
     * 
     * @param repairDetailId 维修信息明细单主键
     * @return 维修信息明细单
     */
    @Override
    public Car4sRepairInfoDetail selectCar4sRepairInfoDetailByRepairDetailId(Long repairDetailId)
    {
        return car4sRepairInfoDetailMapper.selectCar4sRepairInfoDetailByRepairDetailId(repairDetailId);
    }

    /**
     * 查询维修信息明细单列表
     * 
     * @param car4sRepairInfoDetail 维修信息明细单
     * @return 维修信息明细单
     */
    @Override
    public List<Car4sRepairInfoDetail> selectCar4sRepairInfoDetailList(Car4sRepairInfoDetail car4sRepairInfoDetail)
    {
        return car4sRepairInfoDetailMapper.selectCar4sRepairInfoDetailList(car4sRepairInfoDetail);
    }

    /**
     * 新增维修信息明细单
     * 
     * @param car4sRepairInfoDetail 维修信息明细单
     * @return 结果
     */
    @Override
    public int insertCar4sRepairInfoDetail(Car4sRepairInfoDetail car4sRepairInfoDetail)
    {
        return car4sRepairInfoDetailMapper.insertCar4sRepairInfoDetail(car4sRepairInfoDetail);
    }

    /**
     * 修改维修信息明细单
     * 
     * @param car4sRepairInfoDetail 维修信息明细单
     * @return 结果
     */
    @Override
    public int updateCar4sRepairInfoDetail(Car4sRepairInfoDetail car4sRepairInfoDetail)
    {
        return car4sRepairInfoDetailMapper.updateCar4sRepairInfoDetail(car4sRepairInfoDetail);
    }

    /**
     * 批量删除维修信息明细单
     * 
     * @param repairDetailIds 需要删除的维修信息明细单主键
     * @return 结果
     */
    @Override
    public int deleteCar4sRepairInfoDetailByRepairDetailIds(Long[] repairDetailIds)
    {
        return car4sRepairInfoDetailMapper.deleteCar4sRepairInfoDetailByRepairDetailIds(repairDetailIds);
    }

    /**
     * 删除维修信息明细单信息
     * 
     * @param repairDetailId 维修信息明细单主键
     * @return 结果
     */
    @Override
    public int deleteCar4sRepairInfoDetailByRepairDetailId(Long repairDetailId)
    {
        return car4sRepairInfoDetailMapper.deleteCar4sRepairInfoDetailByRepairDetailId(repairDetailId);
    }
}
